namespace Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class Commodities
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(32)]
        public string ComId { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(32)]
        public string Name { get; set; }

        [Key]
        [Column(Order = 2)]
        [StringLength(32)]
        public string Phone { get; set; }

        [Key]
        [Column(Order = 3)]
        public string Addr { get; set; }

        [Key]
        [Column(Order = 4)]
        [StringLength(64)]
        public string Openid { get; set; }

        [Key]
        [Column(Order = 5)]
        public decimal Amount { get; set; }

        [Key]
        [Column(Order = 6)]
        public bool Dstates { get; set; }

        [Key]
        [Column(Order = 7)]
        public bool Zstates { get; set; }
    }
}
